package com.atguigu.common.exception;

import lombok.Data;

/**
 * @Author ShiJieLin
 * @Date 2022/4/30 21:34
 * @Version 1.0
 */
@Data
public class NoStockException extends RuntimeException{

    private Long skuId;

    public NoStockException(Long skuId) {
        super("商品id："+ skuId + "库存不足！");
    }

    public NoStockException(String msg) {
        super(msg);
    }
}
